Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
my lib for fabric mod dev. its the base i built my upcoming mods on top of so instead of copy pasting the same code into every mod i just made it once and dropped it here.
whats in it
mixin events tick, keybind, render timing. the ones that fire in the right tick instead of +1 later which is what most other libs give u. covers before/after handleKeybinds, after gui tick, local player tick / aiStep / sendPosition head + tail, render level tail, all that. plus a check for "is the player typing in chat right now" so ur keybinds dont fire mid typing.
virtual resource pack register a PackContributor and ship assets at runtime from memory. good for procedurally built shaders, dynamic textures, lang u generate, whatever u dont want sitting on disk. minecrafts resource manager picks it up like its a normal pack.
glfw key parser parse M1, MMB, F5, named keys (SHIFT, CTRL, KP3, ESC, all the usual), labels for ui, press state checking per window. for when u accept keybinds from chat commands or config strings instead of from the vanilla keymapping screen.
config helper gson load + save. two methods. for mods too small to want cloth config.
tab complete filter register a command root and it stops showing up in chat tab complete. command still works when typed. for dev / debug commands u dont want spamming the suggestion list.
mixin accessors public AbstractContainerScreen + KeyMapping accessors so other mods dont each need their own.
use it
add to ur fabric.mod.json: "depends": { "onlylib": "*" }
source: https://github.com/Hits0nly/HitsOnly-s-library
upcoming
this is the foundation, more mods using onlylib are COMING.


